<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  <meta name="renderer" content="webkit" />
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
  <title>千锋教育大前端Vue教学</title>
  <!-- 引入jquey -->
  <script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.js"></script>
  <style>
    .container { margin: 40px; }
    .row { display: flex; flex-direction: row; margin: 6px 0px; }
    .name { font-weight: 900; width: 80px; }
    .score { width: 80px; color: gray; }
  </style>
</head>
<body style="margin:100px;font-size:22px;">
  <div id="app"></div>
  <script>
    const list = [
      { name: '张三', chinese: 96, math: 99, english: 89 },
      { name: '李四', chinese: 92, math: 96, english: 98 },
      { name: '王五', chinese: 87, math: 89, english: 92 },
    ];
    const el = document.getElementById('app'); // 获取到dom
    let html = `<div class="container">`;
    for (const o of list) {
      html += `
      <div class="row">
        <div class="name">${o.name}：</div>
        <div class="score">${o.chinese}</div>
        <div class="score">${o.math}</div>
        <div class="score">${o.english}</div>
      </div>
      `
    }
    html += `</div>`;
    el.innerHTML = html; // 设置html
  </script>
</body>
</html>